UP | HOME

使用 curl 与 grep 获取网页的下载链接

[16:52:38] emacsist:~ $ curl  --silent http://www.lbldy.com/television/72024.html 2>&1 | grep -o '"ed2k[^"]\+"' | tr -d '\"'
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E01.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|217430316|d34b72dfcef0d2e1e8b86d4d8f90e363|h=cdvb46pocwrajlqzd3uo7ozgbp5ias4l|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E02.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|188260542|dcf2ff3d936da32c4821066a648b7eff|h=idx7ygjof7fsprwy4hdl55kty3gvqflk|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E03.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|203307833|91a81a79e55067c040c25077de8f7535|h=uwmu4pwh5frfdlqf7ac2kwwm6koyuj2d|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E04.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|206276750|844576d591dcb8a010bf254ed1834a33|h=7tuhnvt6q5vbsimiknbua4b5u7jszmny|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E05.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|198795742|655f53e661f3d6f3a892923a16b54e2b|h=7d2sqw2i75clssjpi4fnljzbbw3ix7tl|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E06.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|186204507|bc0f5d5b1117a59cade0a1a28f3b2252|h=ssi5aym77xhypvazycngocoeynrtbt7z|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E07.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|207350618|9d1356fbbcf3785091aed80b46dd89e1|h=yhy3dw32tezvvvzqig7rb2qe5oleoavw|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E08.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|186792383|0622167794368b5ae1c5bcda58c02c6f|h=rzu342bf5tyjzb3djht62kj2d6jnkp67|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E09.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|193014844|6ff5767ad911465572f990fe05f20ed5|h=bkqcrffge55aqbx7jvpseevudjcwhyj5|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E10.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|198178738|14cb8ccd5db6656facffc503b27c2cc3|h=hcjk72tzcmajoon62o2mbjt2v43iqktf|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E11.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|203982433|57d0d4eb2d02435fc17e90f3f30d2e19|h=jcsugr6ox2ro3rtzv46ag4nsqfpjy4bd|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E12.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.v2.mp4|210227467|e83e75d0fa81cbdaa9ba35495b93d31f|h=cmzm7v5yscoof3khxvnyssqpcyehbkb4|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E13.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|187429785|8b4e512f505d3fed25c0b703092860ad|h=zik4dqg6yp67nyk5jyc5xoff2wlswigd|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E14.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|196391461|b420738baf486d44e407ce0ef259f9e8|h=qjstiru6yn3n5dbuomnbyixd4ik7plct|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E15.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|204695336|336f659034ac6a1b5ec341038db915a6|h=awnbkm7voicjvmmqqclnzvtow5nkvttz|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E16.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|178207313|d47ffacfb63592c7e9eaa95274b22ac0|h=zix2zg5k4k2wbf44pe53w47z3uwcq5xb|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E17.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024x576.mp4|195341631|a1d3622755d9b6f17c66270d496f6423|h=z44kjncvlxeto7ezuwemikd53tho6v7j|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E18.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|198522588|c365eceab60203ec14ec397881d462e2|h=kyg7xftnw5evozv2kufq7iy6e7yyp75u|/
ed2k://|file|%E7%94%9F%E6%B4%BB%E5%A4%A7%E7%88%86%E7%82%B8.The.Big.Bang.Theory.S10E19.%E4%B8%AD%E8%8B%B1%E5%AD%97%E5%B9%95.HDTVrip.1024X576.mp4|184325444|6a7e63087849fd63c56dd2b9439fbcf4|h=dnjqyv7362imqm7brhktorxld54c7amz|/
[16:52:47] emacsist:~ $

然后就可以全复制这些链接到迅雷批量下载了,这样子就不用一条一条链接来复制了。

作者: emacsist

Created: 2017-04-06 四 12:15